{% extends "html/base.html" %}

{% block left_menu %}
	<li class="MenuLeftItem MenuLeft21Item" style="display: none;" id="QuanLy-QuanLyNhanVien"><a href="/quanlynhanvien/" class="Sprite1">Quản lý nhân viên</a></li>
    <li class="MenuLeftItem MenuLeft22Item" style="display: none;" id="QuanLy-ChiTieuKinhDoanh"><a href="/chitieukinhdoanh/" class="Sprite1">Chỉ tiêu kinh doanh</a></li>
    <li class="MenuLeftItem MenuLeft22Item" style="display: none;" id="QuanLy-HoaHongNhanVien"><a href="/hoahongnhanvien/" class="Sprite1 Active">Hoa hồng nhân viên</a></li>
    <li class="MenuLeftItem MenuLeft23Item" style="display: none;" id="QuanLy-PhanQuyen"><a href="/phanquyen/" class="Sprite1">Phân quyền</a></li>
{% endblock %}

{% block javascript%}
<script type="text/javascript" src="/js/hoahongnhanvien.js"></script>
{% endblock %}

{% block search %}
<table>
	<tr>
	    <td>
			<label class="LabelStyle Label7Style">Nhân viên:</label>
	    	<select id="cbbTenNV" class="SelectStyle Select1Style" size=15>
				{% for item in cbbTenNV %}
				<option value="{{ item.id }}">{{ item.tenNV }}</option>
				{% endfor %}
			</select>
	    </td>
	    
	    <td>
			<label class="LabelStyle Label2Style">Mức hoa hồng:</label>
			<table id="gridDanhSachNhanVien"></table>
			<div id="pDanhSachNhanVien"></div>	    
	    </td>
	</tr>
</table>

<div class="Clear"></div>
<div class="BoxButton">
	<a href="#" class="BtnGeneralStyle Sprite2"><span id="check" class="Sprite2">Kiểm tra</span></a>
	<img id="loading" src="/resources/images/loading.gif" width="16" height="16" alt="Đang tải" class="LoadingStyle"/>
	<label class="message" id="message"></label>
</div>
	
<input id="lstLoaiNV" type="hidden" value="{{ lstLoaiNVText }}">
<input id="temp" type="hidden" value="{{ cbbTenNV.0.id }}">
{% endblock %}

{% block grid %}

{% endblock %}

{% block title %} HOA HỒNG NHÂN VIÊN {% endblock %}